package com.ds.infrastructure.hyperspace.console.dao.mapper;

import com.ds.infrastructure.hyperspace.console.entity.page.TbPageWhere;
import com.ds.infrastructure.hyperspace.console.entity.table.TbMetricsTask;
import com.ds.infrastructure.hyperspace.console.entity.where.TbCustomWhere;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author: yaozhendong
 * @create: 2019-11-01 09:21
 **/

public interface TbMetricsTaskMapper {
    int insertSelective(TbMetricsTask record);

    TbMetricsTask selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(TbMetricsTask record);

    //自定义接口===========================================
    List<TbMetricsTask> selectListForPage(@Param("pojo") TbMetricsTask where, @Param("mapWhere") TbCustomWhere mapWhere, @Param("pageWhere") TbPageWhere pageWhere);

    int selectListForPageCount(@Param("pojo") TbMetricsTask where, @Param("mapWhere") TbCustomWhere mapWhere);

    //物理删除
    int delete(@Param("mapWhere") TbCustomWhere mapWhere);
}
